package com.zhang.demo.injector.component

import android.app.Activity
import com.zhang.demo.MainActivity
import com.zhang.demo.injector.PerActivity
import com.zhang.demo.injector.module.ActivityModule
import dagger.Component

@PerActivity
@Component(dependencies = [ApplicationComponent::class], modules = [ActivityModule::class])
interface ActivityComponent {
    val activity: Activity
    fun inject(mainActivity: MainActivity)
}